package com.ffcs.crmd.tsp.admin.service;

import java.util.List;

import com.ctg.itrdc.platform.common.entity.PageInfo;
import com.ffcs.crmd.tsp.admin.entity.Slice;
import com.ffcs.crmd.tsp.common.exception.TspException;

public interface ISliceService {
    
    /**
     * 
     * 功能说明:
     * 
     * @param sliceList
     * @throws TspException 
     */
    public void deleteSlice(List<Slice> sliceList) throws TspException;
    
    /**
     * 
     * 功能说明:
     * 
     * @param slice
     * @throws TspException
     */
    public void deleteSlice(Slice slice) throws TspException;
    
    /**
     * 功能说明:
     * 
     * @param clusterName
     * @param id
     * @return
     * @throws TspException
     */
    Slice get(Slice slice) throws TspException;
    
    /**
     * 
     * 功能说明:
     * 
     * @param clusterName
     * @param sliceGroupId
     * @param skey
     * @return
     * @throws TspException
     */
    public List<Slice> query(Slice slice) throws TspException;
    
    /**
     * 功能说明:
     * 
     * @param clusterName
     * @param sliceGroupId
     * @param skey
     * @param pageNumber
     * @param pageSize
     * @return
     * @throws TspException
     */
    PageInfo<Slice> queryPage(Slice slice, int pageNumber, int pageSize) throws TspException;
    
    /**
     * 
     * 功能说明:
     * 
     * @param slice
     * @throws TspException
     */
    public void saveSlice(Slice slice) throws TspException;

    /**
     * 
     * 功能说明:
     * 
     * @param slice
     * @throws TspException
     */
    public void updateSlice(Slice slice) throws TspException;
    
}
